import request from '@/utils/http'

// 获取资源类型列表
export function fetchResourceTypes() {
  return request.get({ url: '/system/upload/cate' })
}
// 移动资源
export function editType(data: any) {
  return request.post({
    url: '/common/move',
    data
  })
}
//删除资源
export function deleteFileApi(ids: number[]) {
  return request.post({
    url: '/common/file/delete',
    data: { ids }
  })
}
// 获取资源列表
export function fetchResourceList(params: any) {
  return request.get({
    url: '/system/upload/list',
    params
  })
}
// 上传文件
export function uploadResource(data: any) {
  return request.post({
    url: '/system/upload/upload',
    data
  })
}
